import {
	config
} from "../../think/talk/config.js";
// 非流式对话
export function singleTalk(messages) {
	return uni.request({
		url: config.GLM_URL,
		method: "POST",
		data: {
			model: "glm-4",
			messages: messages,
		},
		header: {
			'Authorization': `Bearer ${config.API_KEY}`,
			"Content-Type": "application/json;charset=UTF-8;",
		}
	})
}